package pta.java.ch02.ex03;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            int n = sc.nextInt();
            int begin = sc.nextInt();
            int end = sc.nextInt();
            StringBuffer sb = new StringBuffer();
            for (int i = 0; i < n; i++) {
                sb.append(i);
            }
            System.out.println(sb.substring(begin, end));
        }
    }
}

